<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<title>修改资料</title>
		<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/me.css" th:href="@{/css/me.css}"/>
	</head>
	<body>
		<!-- 主体 -->
		<div class="ui container margin-t-small">
			<form class="ui form" method="post" th:action="@{/update/infor}">
				<div class="ui segment padded-lr-larg">
					<input type="hidden" name="sno" th:value="${session.student.sno}">
					<p>姓名：<span th:text="${session.student.name}">sadf</span></p>
					<p>学号：<span th:text="${session.student.sno}">sadf</span></p>
					<p>班级：<span th:text="${session.student.grades}">sadf</span></p>
					<p>入学时间：<span  th:text="${session.student.enrollment}">sadf</span></p>
					<p>性别：</p>
					<div class="field">
						<div class="field">
							<div class="ui selection dropdown">
								<input type="hidden" name="sex"/>
								<i class="dropdown icon"></i>
								<div class="default text">性别</div>
								<div class="menu">
									<div class="item" data-value="男">
										男
									</div>
									<div class="item" data-value="女">
										女
									</div>
								</div>
							</div>
						</div>
					</div>
					<p>出生年月：</p>
					<div class="field">
						<input type="date" name="birthDate" placeholder="出生年月" />
					</div>

					<p>政治面貌：</p>
					<div class="field">
						<input type="text" name="affiliation" placeholder="政治面貌" />
					</div>

					<p>家庭住址：</p>
					<div class="field">
						<input type="text" name="address" placeholder="家庭住址" />
					</div>

					<div class="ui right aligned basic segment">
						<button class="ui button" onclick="window.history.go(-1)">返回</button>
						<button type="submit" class="ui blue button">提交</button>
					</div>
				</div>
			</form>
		</div>



		<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
		<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
		<script>
			$('.ui.dropdown').dropdown();
			$('.ui.form')
					.form({
						fields: {
							sex: {
								identifier: 'sex',
								rules: [{
									type: 'empty',
									prompt: '请输入日期'
								}]
							},
							birthDate: {
								identifier: 'birthDate',
								rules: [{
									type: 'empty',
									prompt: '请输入姓名'
								}]
							}
							,
							affiliation: {
								identifier: 'affiliation',
								rules: [{
									type: 'empty',
									prompt: '请输入学号'
								}]
							}
							,
							address: {
								identifier: 'address',
								rules: [{
									type: 'empty',
									prompt: '请输入学号'
								}]
							}
						}
					});
		</script>
	</body>
</html>
